package com.aim.util;

/**
 * User: Avraham Shvartzon
 * Date: 1/30/15
 */
public class MSE {

    public static double error (double[] a, double[] b){
        double mse = 0;
        for (int i = 1; i < a.length; i++) {
            double err = a[i] - b[i];
            mse += err * err;
        }
        return mse/a.length;
    }
}
